package com.ayu.chatroom;

import com.ayu.chatroom.util.SpringUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author 徐林玉
 * @Description ChatroomApplication
 * @Date 2022/10/10 16:55
 * @Version 1.0
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.ayu"})
@MapperScan(basePackages = {"com.ayu.chatroom.mapper"})
public class ChatroomApplication {

    @Bean
    public SpringUtil getSpringUtil(){
        return new SpringUtil();
    }

    public static void main(String[] args) {
        SpringApplication.run(ChatroomApplication.class, args);
    }
}
